<form action="language.manage.php" id="form_modi" name="form_modi" method="post">
	<input type="hidden" name="action" value="update" />
	<input type="hidden" name="language_id" id="language_id" value="<tpl> $language_array.language_id </tpl>" />
<table width="680" border="0" cellpadding="0" cellspacing="0" class="from_table">
		<tr>
			<th width="200" align="right" class="th3"><tpl> $langLanguageName </tpl>：</th>
			<td width="480" class="td1"><input name="txtname" type="text" id="txtname" class="txtinput" value="<tpl> $language_array.language_name </tpl>" />
			<label style="display:none" for="txtname" class="wrong" metaDone="true" generated="true"></label>			</td>
		</tr>
		<tr>
			<th width="200" align="right" class="th3"><tpl> $langLanguageSign </tpl>：</th>
			<td width="480" class="td1"><input name="txtsign" type="text" id="txtsign"  class="txtinput" value="<tpl> $language_array.language_sign </tpl>" />
		  <label style="display:none" for="txtsign" class="wrong" metaDone="true" generated="true"></label>			</td>
		</tr>
		<tr>
			<th width="200" align="right" class="th3"><tpl> $langLanguagePath </tpl>：</th>
			<td width="480" class="td1"><tpl> $url </tpl><input name="txtpath" type="text" id="txtpath"  class="txtinput" value="<tpl> $language_array.language_path </tpl>" />
			<label style="display:none" for="txtpath" class="wrong" metaDone="true" generated="true"></label>			</td>
		</tr>
		<tr>
			<th width="200" align="right" class="th3"><tpl> $langLanguageSort </tpl>：</th>
			<td width="480" class="td1"><input name="txtsort" type="text" id="txtsort"  class="txtinput" value="<tpl> $language_array.language_sort </tpl>" />
			<label style="display:none" for="txtsort" class="wrong" metaDone="true" generated="true"></label>			</td>
		</tr>
		<tr>
			<th width="200" align="right" class="th3"><tpl> $langLanguageDefault </tpl>：</th>
			<td width="480" class="td1">
				<input type="radio" name="txtstate" value="1" <tpl> if $language_array.language_state eq 1 </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langLanguageYes </tpl>
				<input type="radio" name="txtstate" value="0" <tpl> if $language_array.language_state eq 0 </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langLanguageNo </tpl>			</td>
		</tr>
		<tr>
    		<td align="right">		</td>
    	    <td>
			<span class="btn_left">
			<input type="submit" class="btn_submit" name="Submit" value="<tpl> $langLanguageSubmit </tpl>" />
			</span>
			<span class="btn_left">
				<input type="button" class="btn_submit" value="<tpl> $langLanguageReturn </tpl>" onclick="ShowDiv= 'result_content';getPageContent('language.manage.php?action=ajax_list&curpage=<tpl> $curpage </tpl>');" />
		    </span>		</td>
		</tr>
  </table>
</form>
<script>
$(document).ready(function() {
	hideLoading();
	//更新
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv	= 'result_content';
								getPageContent("language.manage.php?action=ajax_list&curpage=<tpl> $curpage </tpl>");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	//对添加表单做的验证定义
	$("#form_modi").validate({
		errorClass: "wrong",
		rules: {
		},
		messages: {
		},
		submitHandler: function() {
			$('#form_modi').ajaxSubmit(options);
		}
	});
});
</script>